﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Internal.Master" Inherits="BPM.Web.ViewPage<ProductAssembleDefinition>" %>

<asp:Content ID="c1" ContentPlaceHolderID="TitleContent" runat="server">
	成品：
	<%= this.Model.Name %>
</asp:Content>
<asp:Content ID="c3" ContentPlaceHolderID="ScriptStyleContent" runat="server">
</asp:Content>
<asp:Content ID="c2" ContentPlaceHolderID="MainContent" runat="server">
	<%
		var ad = AD.Singleton.Assemble;
	%>
	<div>
		<div>
			产品描述：
		</div>
		<%= this.Model.Description %>
	</div>
	<div>
		<table class="altTable">
			<thead>
				<tr>
					<td>
						物料图片
					</td>
					<td>
						物料条码
					</td>
					<td>
						物料名称
					</td>
					<td>
						需要的数量
					</td>
				</tr>
			</thead>
			<tbody>
				<%
					foreach (var item in this.Model.ItemList)
					{
						var material = item.MaterialDefinition;
				%>
				<tr>
					<td>
						<img alt="<%= material.Name %>" src="<%= Url.Content(material.ImagePath) %>" />
					</td>
					<td>
						<%= material.Barcode.Number %>
					</td>
					<td>
						<%= material.Name %>
					</td>
					<td>
						<%= item.Amount%>
					</td>
				</tr>
				<%
					}
				%>
			</tbody>
		</table>
	</div>
	<div>
		<%= Html.ActionLink("返回", ad.ProductDefinitionList) %>
	</div>
</asp:Content>
